

<!doctype html>

<html lang="en" data-content_root="../">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

    <title>skidl.schematics.geometry module &#8212; SKiDL 1.2.2 documentation</title>
    <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
    <link rel="stylesheet" type="text/css" href="../_static/bizstyle.css?v=a66e137f" />
    
    <script src="../_static/documentation_options.js?v=fd7cadf9"></script>
    <script src="../_static/doctools.js?v=9a2dae69"></script>
    <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
    <script src="../_static/bizstyle.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <!--[if lt IE 9]>
    <script src="_static/css3-mediaqueries.js"></script>
    <![endif]-->
  </head><body>
    <h1 id="site-title"><a href="../../../"><img src="../../../images/slim_banner.png" width="100%"></a></h1>
    
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">SKiDL 1.2.2 documentation</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">skidl.schematics.geometry module</a></li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <section id="module-skidl.schematics.geometry">
<span id="skidl-schematics-geometry-module"></span><h1>skidl.schematics.geometry module<a class="headerlink" href="#module-skidl.schematics.geometry" title="Link to this heading">¶</a></h1>
<dl class="py class">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">skidl.schematics.geometry.</span></span><span class="sig-name descname"><span class="pre">BBox</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">pts</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#BBox"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.BBox" title="Link to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3.11/library/functions.html#object" title="(in Python v3.11)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.add">
<span class="sig-name descname"><span class="pre">add</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">objs</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#BBox.add"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.BBox.add" title="Link to this definition">¶</a></dt>
<dd><p>Update the bounding box size by adding Point/BBox objects.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.area">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">area</span></span><a class="headerlink" href="#skidl.schematics.geometry.BBox.area" title="Link to this definition">¶</a></dt>
<dd><p>Return area of bounding box.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.ctr">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ctr</span></span><a class="headerlink" href="#skidl.schematics.geometry.BBox.ctr" title="Link to this definition">¶</a></dt>
<dd><p>Return center point of bounding box.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.h">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">h</span></span><a class="headerlink" href="#skidl.schematics.geometry.BBox.h" title="Link to this definition">¶</a></dt>
<dd><p>Return the bounding box height.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.intersection">
<span class="sig-name descname"><span class="pre">intersection</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">bbox</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#BBox.intersection"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.BBox.intersection" title="Link to this definition">¶</a></dt>
<dd><p>Return the bounding box of the intersection between the two bounding boxes.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.intersects">
<span class="sig-name descname"><span class="pre">intersects</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">bbox</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#BBox.intersects"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.BBox.intersects" title="Link to this definition">¶</a></dt>
<dd><p>Return True if the two bounding boxes intersect.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.is_inside">
<span class="sig-name descname"><span class="pre">is_inside</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">pt</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#BBox.is_inside"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.BBox.is_inside" title="Link to this definition">¶</a></dt>
<dd><p>Return True if point is inside bounding box.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.ll">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ll</span></span><a class="headerlink" href="#skidl.schematics.geometry.BBox.ll" title="Link to this definition">¶</a></dt>
<dd><p>Return lower-left point of bounding box.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.lr">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">lr</span></span><a class="headerlink" href="#skidl.schematics.geometry.BBox.lr" title="Link to this definition">¶</a></dt>
<dd><p>Return lower-right point of bounding box.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.resize">
<span class="sig-name descname"><span class="pre">resize</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">vector</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#BBox.resize"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.BBox.resize" title="Link to this definition">¶</a></dt>
<dd><p>Expand/contract the bounding box by applying vector to its corner points.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.round">
<span class="sig-name descname"><span class="pre">round</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#BBox.round"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.BBox.round" title="Link to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.snap_resize">
<span class="sig-name descname"><span class="pre">snap_resize</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">grid_spacing</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#BBox.snap_resize"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.BBox.snap_resize" title="Link to this definition">¶</a></dt>
<dd><p>Resize bbox so max and min points are on grid.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>grid_spacing</strong> (<a class="reference external" href="https://docs.python.org/3.11/library/functions.html#float" title="(in Python v3.11)"><em>float</em></a>) – Grid spacing.</p>
</dd>
</dl>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.ul">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ul</span></span><a class="headerlink" href="#skidl.schematics.geometry.BBox.ul" title="Link to this definition">¶</a></dt>
<dd><p>Return upper-left point of bounding box.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.ur">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ur</span></span><a class="headerlink" href="#skidl.schematics.geometry.BBox.ur" title="Link to this definition">¶</a></dt>
<dd><p>Return upper-right point of bounding box.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.BBox.w">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">w</span></span><a class="headerlink" href="#skidl.schematics.geometry.BBox.w" title="Link to this definition">¶</a></dt>
<dd><p>Return the bounding box width.</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">skidl.schematics.geometry.</span></span><span class="sig-name descname"><span class="pre">Point</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">y</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Point"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Point" title="Link to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3.11/library/functions.html#object" title="(in Python v3.11)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point.flip_xy">
<span class="sig-name descname"><span class="pre">flip_xy</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Point.flip_xy"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Point.flip_xy" title="Link to this definition">¶</a></dt>
<dd><p>Flip X-Y coordinates of point.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point.magnitude">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">magnitude</span></span><a class="headerlink" href="#skidl.schematics.geometry.Point.magnitude" title="Link to this definition">¶</a></dt>
<dd><p>Get the distance of the point from the origin.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point.mask">
<span class="sig-name descname"><span class="pre">mask</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">msk</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Point.mask"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Point.mask" title="Link to this definition">¶</a></dt>
<dd><p>Multiply the X &amp; Y coords by the elements of msk.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point.max">
<span class="sig-name descname"><span class="pre">max</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">pt</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Point.max"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Point.max" title="Link to this definition">¶</a></dt>
<dd><p>Return a Point with coords that are the max x,y of both points.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point.min">
<span class="sig-name descname"><span class="pre">min</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">pt</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Point.min"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Point.min" title="Link to this definition">¶</a></dt>
<dd><p>Return a Point with coords that are the min x,y of both points.</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point.norm">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">norm</span></span><a class="headerlink" href="#skidl.schematics.geometry.Point.norm" title="Link to this definition">¶</a></dt>
<dd><p>Return a unit vector pointing from the origin to the point.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point.round">
<span class="sig-name descname"><span class="pre">round</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Point.round"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Point.round" title="Link to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point.snap">
<span class="sig-name descname"><span class="pre">snap</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">grid_spacing</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Point.snap"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Point.snap" title="Link to this definition">¶</a></dt>
<dd><p>Snap point x,y coords to the given grid spacing.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Point.xprod">
<span class="sig-name descname"><span class="pre">xprod</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">pt</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Point.xprod"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Point.xprod" title="Link to this definition">¶</a></dt>
<dd><p>Cross-product of two 2D vectors returns scalar in Z coord.</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Segment">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">skidl.schematics.geometry.</span></span><span class="sig-name descname"><span class="pre">Segment</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">p1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p2</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Segment"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Segment" title="Link to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3.11/library/functions.html#object" title="(in Python v3.11)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Segment.flip_xy">
<span class="sig-name descname"><span class="pre">flip_xy</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Segment.flip_xy"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Segment.flip_xy" title="Link to this definition">¶</a></dt>
<dd><p>Flip the X-Y coordinates of the segment.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Segment.intersects">
<span class="sig-name descname"><span class="pre">intersects</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">other</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Segment.intersects"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Segment.intersects" title="Link to this definition">¶</a></dt>
<dd><p>Return true if the segments intersect.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Segment.round">
<span class="sig-name descname"><span class="pre">round</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Segment.round"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Segment.round" title="Link to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Segment.shadows">
<span class="sig-name descname"><span class="pre">shadows</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">other</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Segment.shadows"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Segment.shadows" title="Link to this definition">¶</a></dt>
<dd><p>Return true if two segments overlap each other even if they aren’t on the same horiz or vertical track.</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">skidl.schematics.geometry.</span></span><span class="sig-name descname"><span class="pre">Tx</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">a</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">b</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">c</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">d</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dx</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dy</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Tx"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Tx" title="Link to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3.11/library/functions.html#object" title="(in Python v3.11)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx.flip_x">
<span class="sig-name descname"><span class="pre">flip_x</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Tx.flip_x"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Tx.flip_x" title="Link to this definition">¶</a></dt>
<dd><p>Return Tx with X coords flipped around (0, 0).</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx.flip_y">
<span class="sig-name descname"><span class="pre">flip_y</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Tx.flip_y"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Tx.flip_y" title="Link to this definition">¶</a></dt>
<dd><p>Return Tx with Y coords flipped around (0, 0).</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx.from_symtx">
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">from_symtx</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">symtx</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Tx.from_symtx"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Tx.from_symtx" title="Link to this definition">¶</a></dt>
<dd><p>Return a Tx() object that implements the “HVLR” geometric operation sequence.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>symtx</strong> (<a class="reference external" href="https://docs.python.org/3.11/library/stdtypes.html#str" title="(in Python v3.11)"><em>str</em></a>) – A string of H, V, L, R operations that are applied in sequence left-to-right.</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>A transformation matrix that implements the sequence of geometric operations.</p>
</dd>
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference internal" href="#skidl.schematics.geometry.Tx" title="skidl.schematics.geometry.Tx">Tx</a></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx.move">
<span class="sig-name descname"><span class="pre">move</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">vec</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Tx.move"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Tx.move" title="Link to this definition">¶</a></dt>
<dd><p>Return Tx with movement vector applied.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx.no_translate">
<span class="sig-name descname"><span class="pre">no_translate</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Tx.no_translate"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Tx.no_translate" title="Link to this definition">¶</a></dt>
<dd><p>Return Tx with translation set to (0,0).</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx.origin">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">origin</span></span><a class="headerlink" href="#skidl.schematics.geometry.Tx.origin" title="Link to this definition">¶</a></dt>
<dd><p>Return the (dx, dy) translation as a Point.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx.rot">
<span class="sig-name descname"><span class="pre">rot</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">degs</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Tx.rot"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Tx.rot" title="Link to this definition">¶</a></dt>
<dd><p>Return Tx rotated by the given angle (in degrees).</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx.rot_90cw">
<span class="sig-name descname"><span class="pre">rot_90cw</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#Tx.rot_90cw"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.Tx.rot_90cw" title="Link to this definition">¶</a></dt>
<dd><p>Return Tx with 90-deg clock-wise rotation around (0, 0).</p>
</dd></dl>

<dl class="py property">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Tx.scale">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">scale</span></span><a class="headerlink" href="#skidl.schematics.geometry.Tx.scale" title="Link to this definition">¶</a></dt>
<dd><p>Return the scaling factor.</p>
</dd></dl>

</dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="skidl.schematics.geometry.Vector">
<span class="sig-prename descclassname"><span class="pre">skidl.schematics.geometry.</span></span><span class="sig-name descname"><span class="pre">Vector</span></span><a class="headerlink" href="#skidl.schematics.geometry.Vector" title="Link to this definition">¶</a></dt>
<dd><p>alias of <a class="reference internal" href="#skidl.schematics.geometry.Point" title="skidl.schematics.geometry.Point"><code class="xref py py-class docutils literal notranslate"><span class="pre">Point</span></code></a></p>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="skidl.schematics.geometry.to_mils">
<span class="sig-prename descclassname"><span class="pre">skidl.schematics.geometry.</span></span><span class="sig-name descname"><span class="pre">to_mils</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">mm</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#to_mils"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.to_mils" title="Link to this definition">¶</a></dt>
<dd><p>Convert millimeters to thousandths-of-inch and return.</p>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="skidl.schematics.geometry.to_mms">
<span class="sig-prename descclassname"><span class="pre">skidl.schematics.geometry.</span></span><span class="sig-name descname"><span class="pre">to_mms</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">mils</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/schematics/geometry.html#to_mms"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.schematics.geometry.to_mms" title="Link to this definition">¶</a></dt>
<dd><p>Convert thousandths-of-inch to millimeters and return.</p>
</dd></dl>

</section>


            <div class="clearer"></div>
          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <div>
    <h3><a href="../index.html">Table of Contents</a></h3>
    <ul>
<li><a class="reference internal" href="#">skidl.schematics.geometry module</a><ul>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox"><code class="docutils literal notranslate"><span class="pre">BBox</span></code></a><ul>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.add"><code class="docutils literal notranslate"><span class="pre">BBox.add()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.area"><code class="docutils literal notranslate"><span class="pre">BBox.area</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.ctr"><code class="docutils literal notranslate"><span class="pre">BBox.ctr</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.h"><code class="docutils literal notranslate"><span class="pre">BBox.h</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.intersection"><code class="docutils literal notranslate"><span class="pre">BBox.intersection()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.intersects"><code class="docutils literal notranslate"><span class="pre">BBox.intersects()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.is_inside"><code class="docutils literal notranslate"><span class="pre">BBox.is_inside()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.ll"><code class="docutils literal notranslate"><span class="pre">BBox.ll</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.lr"><code class="docutils literal notranslate"><span class="pre">BBox.lr</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.resize"><code class="docutils literal notranslate"><span class="pre">BBox.resize()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.round"><code class="docutils literal notranslate"><span class="pre">BBox.round()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.snap_resize"><code class="docutils literal notranslate"><span class="pre">BBox.snap_resize()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.ul"><code class="docutils literal notranslate"><span class="pre">BBox.ul</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.ur"><code class="docutils literal notranslate"><span class="pre">BBox.ur</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.BBox.w"><code class="docutils literal notranslate"><span class="pre">BBox.w</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point"><code class="docutils literal notranslate"><span class="pre">Point</span></code></a><ul>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point.flip_xy"><code class="docutils literal notranslate"><span class="pre">Point.flip_xy()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point.magnitude"><code class="docutils literal notranslate"><span class="pre">Point.magnitude</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point.mask"><code class="docutils literal notranslate"><span class="pre">Point.mask()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point.max"><code class="docutils literal notranslate"><span class="pre">Point.max()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point.min"><code class="docutils literal notranslate"><span class="pre">Point.min()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point.norm"><code class="docutils literal notranslate"><span class="pre">Point.norm</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point.round"><code class="docutils literal notranslate"><span class="pre">Point.round()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point.snap"><code class="docutils literal notranslate"><span class="pre">Point.snap()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Point.xprod"><code class="docutils literal notranslate"><span class="pre">Point.xprod()</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Segment"><code class="docutils literal notranslate"><span class="pre">Segment</span></code></a><ul>
<li><a class="reference internal" href="#skidl.schematics.geometry.Segment.flip_xy"><code class="docutils literal notranslate"><span class="pre">Segment.flip_xy()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Segment.intersects"><code class="docutils literal notranslate"><span class="pre">Segment.intersects()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Segment.round"><code class="docutils literal notranslate"><span class="pre">Segment.round()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Segment.shadows"><code class="docutils literal notranslate"><span class="pre">Segment.shadows()</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx"><code class="docutils literal notranslate"><span class="pre">Tx</span></code></a><ul>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx.flip_x"><code class="docutils literal notranslate"><span class="pre">Tx.flip_x()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx.flip_y"><code class="docutils literal notranslate"><span class="pre">Tx.flip_y()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx.from_symtx"><code class="docutils literal notranslate"><span class="pre">Tx.from_symtx()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx.move"><code class="docutils literal notranslate"><span class="pre">Tx.move()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx.no_translate"><code class="docutils literal notranslate"><span class="pre">Tx.no_translate()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx.origin"><code class="docutils literal notranslate"><span class="pre">Tx.origin</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx.rot"><code class="docutils literal notranslate"><span class="pre">Tx.rot()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx.rot_90cw"><code class="docutils literal notranslate"><span class="pre">Tx.rot_90cw()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Tx.scale"><code class="docutils literal notranslate"><span class="pre">Tx.scale</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#skidl.schematics.geometry.Vector"><code class="docutils literal notranslate"><span class="pre">Vector</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.to_mils"><code class="docutils literal notranslate"><span class="pre">to_mils()</span></code></a></li>
<li><a class="reference internal" href="#skidl.schematics.geometry.to_mms"><code class="docutils literal notranslate"><span class="pre">to_mms()</span></code></a></li>
</ul>
</li>
</ul>

  </div>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/rst_output/skidl.schematics.geometry.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<search id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>
    </div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">SKiDL 1.2.2 documentation</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">skidl.schematics.geometry module</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
    &#169; Copyright 2016-2024, Dave Vandenbout.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.3.7.
    </div>
  </body>
</html>